#!/usr/bin/python
import os
import stat

path = "."
names = os.listdir(path)

for name in names:
	try:
		st = os.lstat(os.path.join(path,name))
	except os.error:
		continue
	if stat.S_ISDIR(st.st_mode):
		if name != '.svn' and name != 'pot':
			print name
			os.system('msgmerge -U -v --no-wrap '+name+'/poat_lang.'+name+'.po pot/poat_lang.pot')
			os.system('msgmerge -U -v --no-wrap '+name+'/poat_mail_lang.'+name+'.po pot/poat_mail_lang.pot')
